
<!doctype html>
<html lang="en">

  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title id='title'></title>
    <link id='icon' rel="shortcut icon" href="lib/py.jpg">
    <script src="lib/bootstrap/jquery-3.2.1.js"></script>
    <script src="lib/bootstrap/popper.min.js"></script>
    <link rel="stylesheet" href="lib/bootstrap/bootstrap.min.css">
    <script src="lib/bootstrap/bootstrap.min.js"></script>
    <script src="lib/jswrt/py_full.js"></script>

<!-- <link href="//fonts.googleapis.com/css2?family=Material+Icons+Sharp&amp;v=1649856093886" rel="stylesheet">
<link href="//fonts.googleapis.com/css2?family=Material+Icons+Two+Tone&amp;v=1649856097599" rel="stylesheet">
 -->
  </head>

<body onload="start()">
  <script>
    function stdout(text) {
      if (text.trim()!='') console.log(text)
    }
    function stderr(text) {
      if (text.trim()!='') console.error(text)
    }
    function run(src) {
      let rt = create_jswrt()
      rt.start_and_run(null, stdout, stderr, src, null)

    }
    function start() {
      fetch('main.py').then(res => {
        if (res.status != 200) {
          console.error(res.statusText)
          return
        }
        res.text()
          .then(run)
          .catch(stderr)
      })
    }
  </script>

</body>

</html>
